package com.infore.dataReceiving.entity.air212;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 原始数据实体类
 */
@Entity
@Table(name="T_BAS_ORIGINALDATA")
public class OriginalData implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name="DATA_GUID")
	@GeneratedValue(generator = "uuidGenerator")
	@GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
	private String id;
	
	/** 站点mn **/
	@Column(name="STATION_MN", length = 30)
	private String mn;
	
	/** 站点name **/
	@Column(name="STATION_NAME", length = 50)
	private String name;
	
	/** 因子code **/
	@Column(name="PROJECT_CODE", length = 20)
	private String projectCode;
	
	/** 因子name **/
	@Column(name="PROJECT_NAME", length = 50)
	private String projectName;
	
	/** 发送时间 **/
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Column(name="SEND_TIME")
	private Date sendTime;
	
	/** 接收时间 **/
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Column(name="RECEIVE_TIME")
	private Date receiveTime;
	
	/** 因子浓度值 **/
	@Column(name="DATA_VALUE")
	private String dataValue;
	
	/** 因子浓度值 **/
	@Column(name="DATA_CONVERT")
	private String dataConvert;
	
	/** 数据状态 **/
	@Column(name="DATA_STATE", length = 10)
	private String dataState;
	
	/** 数据标识 **/
	@Column(name="FLAG", length = 1)
	private String flag;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMn() {
		return mn;
	}

	public void setMn(String mn) {
		this.mn = mn;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getProjectCode() {
		return projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Date getReceiveTime() {
		return receiveTime;
	}

	public void setReceiveTime(Date receiveTime) {
		this.receiveTime = receiveTime;
	}

	public String getDataValue() {
		return dataValue;
	}

	public void setDataValue(String dataValue) {
		this.dataValue = dataValue;
	}

	public String getDataConvert() {
		return dataConvert;
	}

	public void setDataConvert(String dataConvert) {
		this.dataConvert = dataConvert;
	}

	public String getDataState() {
		return dataState;
	}

	public void setDataState(String dataState) {
		this.dataState = dataState;
	}
}
